package indi.entity;

//图书管理员
public class Manager {
	//数据库自动生成ID
	private int id;
	//用户名
	private String username;
	//密码
	private String pwd;

	//构造函数
	public Manager(String username, String password) {
		super();
		this.id = 0;
		this.username = username;
		this.pwd = password;
	}

	//重载equal
	@Override
	public boolean equals(Object another) {
		return username.equals(((Manager) another).getUsername()) 
				&& pwd.equals(((Manager) another).getPwd());
	}
	public String getUsername() {
		return username;
	}
	public String getPwd() {
		return pwd;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
}
